package com.kg.module.jtnc.jy.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.kg.core.base.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * <p>
 * 收菜交易管理表
 * </p>
 *
 * @author xxx
 * @since 2024-11-02
 */
@Getter
@Setter
@ApiModel(value = "KrJyDTO", description = "收菜交易管理表")
public class KrJyDTO implements BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private String jyId;

    @ApiModelProperty("种植计划ID")
    @NotBlank(message = "种植计划ID不能为空")
    private String zzjhId;

    @ApiModelProperty("交易单号")
    private String jydh;

    @ApiModelProperty("收菜员用户id")
    private String scyUserId;

    @ApiModelProperty("收菜员姓名")
    private String scyxm;

    @ApiModelProperty("地块id")
    @NotBlank(message = "地块id不能为空")
    private String dkglId;

    @ApiModelProperty("地块名称")
    @NotBlank(message = "地块名称不能为空")
    private String dkmc;

    @ApiModelProperty("农户id")
    @NotBlank(message = "农户id不能为空")
    private String nhId;

    @ApiModelProperty("农户姓名")
    @NotBlank(message = "农户姓名不能为空")
    private String nhxm;

    @ApiModelProperty("品种")
    @NotBlank(message = "品种不能为空")
    private String pz;

    @ApiModelProperty("单价")
    @NotNull(message = "单价不能为空")
    private Double dj;

    @ApiModelProperty("第一次称重")
    @NotNull(message = "第一次称重不能为空")
    private Double dyccz;

    @ApiModelProperty("第二次称重")
    @NotNull(message = "第二次称重不能为空")
    private Double deccz;

    @ApiModelProperty("第三次称重（去皮）")
    @NotNull(message = "第三次称重（去皮）不能为空")
    private Double dsccz;

    @ApiModelProperty("实际重量")
    @NotNull(message = "实际重量不能为空")
    private Double sjzl;

    @ApiModelProperty("交易金额")
    @NotNull(message = "交易金额不能为空")
    private Double jyje;

    @ApiModelProperty("交易状态（0：未确认，1:已确认，2:已拒绝）")
    private String state;

    @ApiModelProperty("交易时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
}
